package com.example.springboot1.utils;

import org.jodconverter.DocumentConverter;
import org.jodconverter.LocalConverter;
import org.jodconverter.office.OfficeManager;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * @author ckj
 * @description TODO
 * @date 2023-08-31 14:55
 */


//@Configuration
public class JodConverterConfig {
    @Resource
    private OfficeManager officeManager;
    @Bean
    public DocumentConverter documentConverter() {
        return LocalConverter.builder()
                .officeManager(officeManager)
                .build();
    }
}

